import Home from "../view/Home";
import Goods from "../view/Home/children/Goods";
import Goods_classfily from "../view/Home/children/Goods/children/goods_classify";
import Goods_evaluation from "../view/Home/children/Goods/children/Goods_evaluation";
import Goods_management from "../view/Home/children/Goods/children/Goods_management";
import Goods_size from "../view/Home/children/Goods/children/Goods_size";
import Marketing from "../view/Home/children/Marketing";
import Bargain from "../view/Home/children/Marketing/children/Bargain";
import Bargain_goods from "../view/Home/children/Marketing/children/Bargain/children/Bargain_goods";
import Kill_goods from "../view/Home/children/Marketing/children/Kill_goods";
import SecConfig from "../view/Home/children/Marketing/children/Kill_goods/children/SecConfiguration";
import Seckill from "../view/Home/children/Marketing/children/Seckill";
import Welcome from "../view/Home/children/Welcome";
import Workbench from "../view/Home/children/Workbench";
import Bargain_list from "../view/Home/children/Marketing/children/Bargain/children/Bargain_list"
import Themanagement from "../view/Home/children/Marketing/children/Themanagement";
import Live_streaming from "../view/Home/children/Marketing/children/Themanagement/children/Live_streaming";
import Create_live from "../view/Home/children/Marketing/children/Themanagement/children/Create_live";
import Group_booking from "../view/Home/children/Marketing/children/Group_booking";
import Booking_shop from "../view/Home/children/Marketing/children/Group_booking/children/Booking_shop";
import Booking_list from "../view/Home/children/Marketing/children/Group_booking/children/Booking_list";
import Order from "../view/Home/children/Order";
import Order_summarace from "../view/Home/children/Order/children/Order_summarace";
import Evaluate from "../view/Home/children/Order/children/Evaluate";
import Distribution from "../view/Home/children/Order/children/Distribution";
import Commander from "../view/Home/children/Commander";
import CkeckAmdin from "../view/Home/children/Commander/CkeckAmdin";
import CheckList from "../view/Home/children/Commander/CheckList";
import Grade from "../view/Home/children/Commander/Grade";
import Setting from "../view/Home/children/Commander/Setting";
import Way from "../view/Home/children/Commander/Way";
// import Store from "../view/Home/children/Store";
// import Proposer from "../view/Home/children/Store/Proposer";
// import Deploy from "../view/Home/children/Store/Deploy";
// import Outlet from "../view/Home/children/Store/Outlet";
// import Product from "../view/Home/children/Store/Product";
// import Indent from "../view/Home/children/Store/Indent";
// import Deposit from "../view/Home/children/Store/Deposit";
// import Maturity from "../view/Home/children/Store/Maturity";
// import Warehouse from "../view/Home/children/Warehouse";
// import Keeper from "../view/Home/children/Warehouse/Keeper";
// import Delivery from "../view/Home/children/Warehouse/Delivery";
// import Stock from "../view/Home/children/Warehouse/Stock";
// import Inquire from "../view/Home/children/Warehouse/Inquire";
// import BreakDown from "../view/Home/children/Warehouse/BreakDown";
// import BreakSearch from "../view/Home/children/Warehouse/BreakSearch";
// import TakeStock from "../view/Home/children/Warehouse/TakeStock";
// import Repertory from "../view/Home/children/Warehouse/Repertory";
// import RetailStore from "../view/Home/children/RetailStore";
// import Member from "../view/Home/children/RetailStore/Member";
// import Agent from "../view/Home/children/RetailStore/Agent";
// import OperAtor from "../view/Home/children/RetailStore/OperAtor";
// import BrokeRage from "../view/Home/children/RetailStore/BrokeRage";
// import Aduit from "../view/Home/children/RetailStore/Aduit";
// import SettingUp from "../view/Home/children/RetailStore/SettingUp";
// import Applet from "../view/Home/children/Applet";
// import Pay from "../view/Home/children/Applet/Pay";
import Authority from "../view/Home/children/Authority";
import Staff from "../view/Home/children/Authority/Staff";
import Role from "../view/Home/children/Authority/Role";
import Service from "../view/Home/children/Authority/Service";
import Login from "../view/Login";
import Addlive from "../view/CreatLive";
import Pushlive from "../view/LiveDetail";
import Headlist from "../view/Home/children/Commander/Money";
import Order_admin from "../view/Home/children/Order/children/Order_admin";

const rotue = [
    {
        path: "/home",
        component: Home,
        children: [
            {
                path: "/home/welcome",
                component: Welcome,
            },
            {
                path: "/home/workbench",
                component: Workbench,
                title: '工作台'
            },
            {
                path: "/home/goods",
                component: Goods,
                title: "商品",
                children: [
                    {
                        path: "/home/goods/goods_management",
                        component: Goods_management,
                        title: "商品管理"
                    },
                    {
                        path: "/home/goods/goods_classfily",
                        component: Goods_classfily,
                        title: "商品分类"
                    },
                    {
                        path: "/home/goods/goods_size",
                        component: Goods_size,
                        title: "商品规格"
                    },
                    {
                        path: "/home/goods/goods_evaluation",
                        component: Goods_evaluation,
                        title: "商品评价"
                    },
                    {
                        to: "/home/goods/goods_management",
                        from: "/home/goods"
                    }
                ]
            },
            {
                path: "/home/marketing",
                component: Marketing,
                title: '营销',
                children: [
                    {
                        path: "/home/marketing/seckill",
                        component: Seckill,
                        title: "秒杀管理",
                        children: [
                            {
                                path: "/home/marketing/seckill/secConfig",
                                component: SecConfig,
                                title: "秒杀配置"
                            },
                            {
                                path: "/home/marketing/seckill/kill_goods",
                                component: Kill_goods,
                                title: "秒杀商品"
                            },
                            {
                                to: "/home/marketing/seckill/secConfig",
                                from: "/home/marketing/seckill"
                            }
                        ]
                    },
                    {
                        path: "/home/marketing/bargain",
                        component: Bargain,
                        title: "砍价管理",
                        children: [
                            {
                                path: "/home/marketing/bargain/bargain_goods",
                                component: Bargain_goods,
                                title: "砍价商品"
                            },
                            {
                                path: "/home/marketing/bargain/bargain_list",
                                component: Bargain_list,
                                title: "砍价列表"
                            },
                            {
                                to: "/home/marketing/bargain/bargain_goods",
                                from: "/home/marketing/bargain"
                            }
                        ]
                    },
                    {
                        path: "/home/marketing/themanagement",
                        component: Themanagement,
                        title: "直播管理",
                        children: [
                            {
                                path: "/home/marketing/themanagement/live_streaming",
                                component: Live_streaming,
                                title: "直播列表"
                            },
                            {
                                path: "/home/marketing/themanagement/create_live",
                                component: Create_live,
                                title: "创建直播"
                            },
                            {
                                to: "/home/marketing/themanagement/live_streaming",
                                from: "/home/marketing/themanagement"
                            }
                        ]
                    },
                    {
                        path: "/home/marketing/group_booking",
                        component: Group_booking,
                        title: "拼团管理",
                        children: [
                            {
                                path: "/home/marketing/group_booking/booking_shop",
                                component: Booking_shop,
                                title: "拼团商品"
                            },
                            {
                                path: "/home/marketing/group_booking/booking_list",
                                component: Booking_list,
                                title: "拼团列表"
                            },
                            {
                                to: "/home/marketing/group_booking/booking_shop",
                                from: "/home/marketing/group_booking"
                            }
                        ]
                    },
                    {
                        to: "/home/marketing/seckill",
                        from: "/home/marketing"
                    }
                ]
            },
            {
                path: "/home/order",
                component: Order,
                title: "订单",
                children: [
                    {
                        path: "/home/order/orderadmin",
                        component: Order_admin,
                        title: "订单管理"
                    },
                    {
                        path: "/home/order/order_summarace",
                        component: Order_summarace,
                        title: "订单概述"
                    },
                    {
                        path: "/home/order/evaluate",
                        component: Evaluate,
                        title: "评价管理"
                    },
                    {
                        path: "/home/order/distribution",
                        component: Distribution,
                        title: "订单配送"
                    },
                    {
                        to: "/home/order/orderadmin",
                        from: "/home/order"
                    }
                ]
            },
            {
                path: "/home/commander",
                component: Commander,
                title: "团长",
                children: [
                    {
                        path: "/home/commander/ckeckAmdin",
                        component: CkeckAmdin,
                        title: "团长管理"
                    },
                    {
                        path: "/home/commander/grade",
                        component: Grade,
                        title: "团长审核"
                    },
                    {
                        path: "/home/commander/checkList",
                        component: CheckList,
                        title: "团长等级"
                    },
                    {
                        path: "/home/commander/setting",
                        component: Setting,
                        title: "设置"
                    },
                    {
                        path: "/home/commander/way",
                        component: Way,
                        title: "路线"
                    },
                    {
                        path: "/home/commander/money",
                        component: Headlist,
                        title: "佣金流水"
                    },
                    {
                        to: "/home/commander/ckeckAmdin",
                        from: "/home/commander"
                    }
                ]
            },
            // {
            //     path: "/home/store",
            //     component: Store,
            //     title: "门店",
            //     children: [
            //         {
            //             path: "/home/store/proposer",
            //             component: Proposer,
            //             title: "申请列表"
            //         },
            //         {
            //             path: "/home/store/deploy",
            //             component: Deploy,
            //             title: "配置"
            //         },
            //         {
            //             path: "/home/store/outlet",
            //             component: Outlet,
            //             title: "门店"
            //         },
            //         {
            //             path: "/home/store/product",
            //             component: Product,
            //             title: "商品"
            //         },
            //         {
            //             path: "/home/store/indent",
            //             component: Indent,
            //             title: "订单"
            //         },
            //         {
            //             path: "/home/store/deposit",
            //             component: Deposit,
            //             title: "提现"
            //         },
            //         {
            //             path: "/home/store/maturity",
            //             component: Maturity,
            //             title: "到店付款"
            //         },
            //         {
            //             to: "/home/store/proposer",
            //             from: "/home/store"
            //         }
            //     ]
            // },
            // {
            //     path: "/home/warehouse",
            //     component: Warehouse,
            //     title: "仓库",
            //     children: [
            //         {
            //             path: "/home/warehouse/keeper",
            //             component: Keeper,
            //             title: "仓库管理"
            //         },
            //         {
            //             path: "/home/warehouse/delivery",
            //             component: Delivery,
            //             title: "配送小区"
            //         },
            //         {
            //             path: "/home/warehouse/stock",
            //             component: Stock,
            //             title: "入库管理"
            //         },
            //         {
            //             path: "/home/warehouse/inquire",
            //             component: Inquire,
            //             title: "入库查询"
            //         },
            //         {
            //             path: "/home/warehouse/breakdown",
            //             component: BreakDown,
            //             title: "出库管理"
            //         },
            //         {
            //             path: "/home/warehouse/breaksearch",
            //             component: BreakSearch,
            //             title: "出库查询"
            //         },
            //         {
            //             path: "/home/warehouse/takestock",
            //             component: TakeStock,
            //             title: "盘点管理"
            //         },
            //         {
            //             path: "/home/warehouse/repertory",
            //             component: Repertory,
            //             title: "现有库存"
            //         },
            //         {
            //             to: "/home/warehouse/keeper",
            //             from: "/home/warehouse"
            //         }
            //     ]
            // },
            // {
            //     path: "/home/retailstore",
            //     component: RetailStore,
            //     title: "分销",
            //     children: [
            //         {
            //             path: "/home/retailstore/member",
            //             component: Member,
            //             title: "超级会员"
            //         },
            //         {
            //             path: "/home/retailstore/agent",
            //             component: Agent,
            //             title: "代理商",
            //         },
            //         {
            //             path: "/home/retailstore/operator",
            //             component: OperAtor,
            //             title: "运营商",
            //         },
            //         {
            //             path: "/home/retailstore/brokerage",
            //             component: BrokeRage,
            //             title: "佣金记录",
            //         },
            //         {
            //             path: "/home/retailstore/aduit",
            //             component: Aduit,
            //             title: "会员审核",
            //         },
            //         {
            //             path: "/home/retailstore/settingup",
            //             component: SettingUp,
            //             title: "设置 ",
            //         },
            //         {
            //             to: "/home/retailstore/member",
            //             from: "/home/retailstore"
            //         }
            //     ]
            // },
            // {
            //     path: "/home/applet",
            //     component: Applet,
            //     title: "小程序",
            //     children: [
            //         {
            //             path: "/home/applet/pay",
            //             component: Pay,
            //             title: "支付",
            //         },
            //         {
            //             to: "/home/applet/pay",
            //             from: "/home/applet"
            //         }
            //     ]
            // },
            {
                path: "/home/authority",
                component: Authority,
                title: "权限",
                children: [
                    {
                        path: "/home/authority/staff",
                        component: Staff,
                        title: "员工管理",
                    },
                    {
                        path: "/home/authority/role",
                        component: Role,
                        title: "角色管理",
                    },
                    {
                        path: "/home/authority/service",
                        component: Service,
                        title: "客服管理",
                    },
                    {
                        to: "/home/authority/staff",
                        from: "/home/authority"
                    }
                ]
            },
            {
                to: "/home/welcome",
                from: "/home"
            }
        ]
    },
    {
        path: "/login",
        component: Login
    },
    {
        path: "/addlive",
        component: Addlive
    },
    {
        path: "/pushlive",
        component: Pushlive
    },
    {
        to: "/login",
        from: "/"
    }
]

export default rotue